CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

include_directories(${COMN_DIR}/include)
include_directories(include)
include_directories(.)

include_directories(${FFMPEG_DIR}/include)
include_directories(${THIRD_PARTY}/sqlite/include)


if (MSVC)
include_directories(${THIRD_PARTY}/stdint)
endif()

link_directories(${COMN_DIR}/lib)
link_directories(${FFMPEG_DIR}/bin)
link_directories(${PROJECT_ROOT}/lib)
link_directories(${THIRD_PARTY}/sqlite/lib)

aux_source_directory(. SOURCES)

add_library(MediaStorage SHARED ${SOURCES})

target_link_libraries(MediaStorage
	${LIB_PLATFORM}
	debug comnd optimized comn
	${FFMPEG_LIBRARIES}
	sqlite3
	
	)

set_target_properties(MediaStorage PROPERTIES LINK_INTERFACE_LIBRARIES "")
set_target_properties(MediaStorage PROPERTIES INTERFACE_LINK_LIBRARIES "")


